<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>6-边走边滚动效果</title>
    <style>
        .box{
            width: 800px;
            height: 200px;
            border:1px solid #000;
        }
        img{
            width:200px;
            height:200px;
            transition: all 4s;
        }
        /* 位移translate(600px) 滚动roate(360deg) */
        .box:hover img{
            transform: translate(600px) rotate(360deg);
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="images/tyre1.png" alt="">
    </div>
</body>
</html>